package Object;

public class ObjectDemo {
    public static void main(String[] args) {
//        Point p = new Point(200,300);
//        System.out.println(p);
//        System.out.println(p.toString());
        Point p1 = new Point(200,300);
        Point p2 = new Point(200,300);
        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));
    }

}
